package org.millioncall.yueyoga.admin.dao.impl;

import java.util.Map;

import org.millioncall.yueyoga.admin.dao.BaseDao;
import org.millioncall.yueyoga.admin.dao.SiteDAO;
import org.millioncall.yueyoga.admin.model.Site;
import org.springframework.stereotype.Repository;

@Repository
public class SiteDAOImpl extends BaseDao implements SiteDAO {

	@Override
	public int updateSite(Map<String, Object> map) {
		return this.getPagableSqlSessionTemplate().insert("updateSystem", map);
	}

	@Override
	public Site getSite() {
		return this.getPagableSqlSessionTemplate().selectOne("getSite");
	}
}
